<div class="trace_uri">KARTU HASIL STUDI &raquo; <span class="current_page">LIHAT KARTU HASIL STUDI</span></div>
<div id="content">

<?php if($getDataKhs): ?>
<div id="top_info_1">
<div class="info_left lfloat">
  <b>KARTU HASIL STUDI (KHS)</b>
</div>
</div>
<?php endif; ?>

<div class="text">
<p>
 <?php if($getDataKhs): ?>
 <?php foreach($getDataKhs as $khsValue): ?>
 <div class="data_mhs" align="center">
     <table class="uiTableList" cellpadding="5" cellspacing="0" border="0">
     <form method="post">
     <tbody>
       <tr align="left">
         <td width="75"><b>Nama</b></td>
         <td width="14">:</td>
         <td width="361" ><?php echo $khsValue->NAMA ?></td>
       </tr>
       <tr align="left">
		  <td><b>NIM</b></td>
          <td>:</td>
          <td><?php echo $khsValue->NIM ?></td>
	   </tr>
       <tr align="left">
		  <td><b>Semester</b></td>
          <td>:</td>
          <td><?php echo ucwords(strtolower($khsValue->SEMESTER)).' '.$khsValue->NAMA_TAHUN_AJARAN ?></td>
	   </tr>
       </tbody>
       </form>
      </table>
 </div>
 <?php break; ?>
 <?php endforeach; ?>
 <br />
 <table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#808080" align="center">
            <tr class="font_white" bgcolor="#000000" align="center">
                <th width="30" height="37">No.</th>
                <th width="70">Kode MK</th>
                <th width="310">Nama MK</th>
                <th width="70">SKS</th>
                <th width="70">Nilai</th>
            </tr>
            <?php $seq_number = 1; ?>
            <?php foreach($getDataKhs as $khsValue): ?>
            <tr align="center">
              <td height="25" align="right"><?php echo $seq_number; ?></td>
              <td><?php echo strtoupper($khsValue->KODE_MK) ?></td>
              <td align="left"><?php echo ucwords(strtolower($khsValue->NAMA_MK)) ?></td>
              <td><?php echo $khsValue->SKS ?></td>
              <td><?php if($khsValue->NILAI) echo $khsValue->NILAI; else echo "&nbsp";  ?></td>
            </tr>
            <?php $seq_number++; ?>
            <?php endforeach; ?>
 </table>
 <br />
 <div style="margin-left:125px">
 <table>
 <tr>
   <td><b>Indeks Prestasi Semester</b></td>
   <td>:</td>
   <td><?php echo $this->gpa_com->ips($getDataKhs,'NILAI','SKS'); ?></td>
 </tr>
 <tr>
   <td><b>Indeks Prestasi Kumulatif</b></td>
   <td>:</td>
   <td><?php echo $this->gpa_com->ipk_processor_sirak($khsValue->NIM); ?></td>
 </tr>
 </table>
 </div>
 <?php else: ?>
 <div align="center">
  <div style="width:500px">
      <div id="p_messages_error">
        Data tidak tersedia.
      </div>
   </div>
 </div>
 <?php endif; ?>
</p>
<br /><br />

<div align="center">
<img src="<?php echo base_url().'images/back.png' ?>" align=top /> <a title="Klik untuk kembali" href="<?php echo base_url().'sima/bimbingan/pa.html' ?>">KEMBALI</a>
</div>

<div class="separator_closer">&nbsp;</div>

</div>

</div>